objects = Start.o UDPServer.o ../common/PeerList/PeerList.o

server: $(objects)
	g++ -g -o server $(objects) -lpthread

Start.o: UDPServer.h ../common/PeerList/PeerList.h
UDPServer.o: UDPServer.h ../common/PeerList/PeerList.h
../common/PeerList.o: ../common/PeerList/PeerList.h

.PHONY: clean
clean:
	rm server $(objects)
